#include "graphicsview.h"
#include "Public/appsignal.h"

#include <QWheelEvent>

GraphicsView::GraphicsView(QWidget *parent)
    : QGraphicsView(parent)
{

}

void GraphicsView::wheelEvent(QWheelEvent *event)
{
    float value = event->angleDelta().y();
    emit AppSignal::getInstance()->sgl_wheel_graphics_view(value);
    event->accept();
}
